/* common.h --- 
 * 
 * @file common.h
 * @brief 
 * @author Molnár Zoltán
 * @date Sun Jan 26 09:00:12 2014 (+0100)
 * Version: 
 * Last-Updated: Sun Feb  2 20:46:23 2014 (+0100)
 *           By: Molnár Zoltán
 * 
 */

/* This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 3, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA 02110-1301, USA.
 */

#ifndef __COMMON_H
#define __COMMON_H

/*******************************************************************************/
/* INCLUDES                                                                    */
/*******************************************************************************/
#include <stdint.h>
#include "FreeRTOS.h"
#include "semphr.h"

/*******************************************************************************/
/* DEFINED CONSTANTS                                                           */
/*******************************************************************************/


/*******************************************************************************/
/* MACRO DEFINITIONS                                                           */
/*******************************************************************************/


/*******************************************************************************/
/* TYPE DEFINITIONS                                                            */
/*******************************************************************************/
/**
 * LK8EX1 structure
 */
typedef struct
{
  uint32_t u32Pressure; /**< raw pressure in hPa, default 999999 */
  uint32_t u32Altitude; /**< altitude in meters, default 99999 */
  uint32_t u32Vario;        /**< vario in cm/s, default 9999 */
  uint32_t u32Temp;     /**< temperature in C, can also be negative, default 99 */
  uint32_t u32Battery;  /**< battery voltage ro charge percentage, default 999 */
}LK8EX1_t;

/*******************************************************************************/
/* DECLARATIONS OF GLOBAL VARIABLES                                           */
/*******************************************************************************/
extern xQueueHandle MeasDataQueue;

/*******************************************************************************/
/* DECLARATION OF GLOBAL FUNCTIONS                                             */
/*******************************************************************************/


#endif /* COMMON_H */

/******************************* END OF FILE ***********************************/

